package com.xpffly.design.command.service;

import com.xpffly.design.command.service.impl.CodeGroup;
import com.xpffly.design.command.service.impl.PageGroup;
import com.xpffly.design.command.service.impl.RequirementGroup;

/**
 * @Author: xpengfei
 * @Date: 2021/4/6 22:35
 * @Description：抽象命令类
 */
public abstract class Command {
    // 定义好三个组，子类可以直接调用
    /**
     * 需求组
     */
    protected RequirementGroup requirementGroup = new RequirementGroup();
    /**
     * 美工组
     */
    protected PageGroup pageGroup = new PageGroup();

    /**
     * 代码组
     */
    protected CodeGroup codeGroup = new CodeGroup();

    /**
     * 定义执行方法：你要我做什么
     */
    public abstract void execute();
}
